package com.itheima.web.manager;

import cn.hutool.captcha.LineCaptcha;
import com.itheima.domain.db.AnalysisByDay;
import com.itheima.domain.db.TuBiao;
import com.itheima.domain.vo.AnalysisSummaryVo;
import com.itheima.service.db.AnalysisByDayService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Component
public class AnalysisManager {

    @Reference
    private AnalysisByDayService analysisByDayService;
    //概要统计
    public AnalysisSummaryVo summary() {
        return analysisByDayService.summary();
    }

    //图表统计
    public TuBiao tongji(Long sd, Long ed, String type){
        return analysisByDayService.tongji(sd,ed,type);
    }
}
